\(\int \frac {\sin (a)}{x} \, dx\) [30]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [A] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 6, antiderivative size = 5 \[ \int \frac {\sin (a)}{x} \, dx=\log (x) \sin (a) \]

[Out]

ln(x)*sin(a)

Rubi [A] (verified)

Time = 0.01 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {12, 29} \[ \int \frac {\sin (a)}{x} \, dx=\sin (a) \log (x) \]

[In]

Int[Sin[a]/x,x]

[Out]

Log[x]*Sin[a]

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 29

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]

Rubi steps \begin{align*} \text {integral}& = \sin (a) \int \frac {1}{x} \, dx \\ & = \log (x) \sin (a) \\ \end{align*}

Mathematica [A] (verified)

Time = 0.00 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.00 \[ \int \frac {\sin (a)}{x} \, dx=\log (x) \sin (a) \]

[In]

Integrate[Sin[a]/x,x]

[Out]

Log[x]*Sin[a]

Maple [A] (verified)

Time = 0.04 (sec) , antiderivative size = 6, normalized size of antiderivative = 1.20

method result size
default \(\ln \left (x \right ) \sin \left (a \right )\) \(6\)
norman \(\ln \left (x \right ) \sin \left (a \right )\) \(6\)
risch \(\ln \left (x \right ) \sin \left (a \right )\) \(6\)
parallelrisch \(\ln \left (x \right ) \sin \left (a \right )\) \(6\)

[In]

int(sin(a)/x,x,method=_RETURNVERBOSE)

[Out]

ln(x)*sin(a)

Fricas [A] (verification not implemented)

none

Time = 0.23 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.00 \[ \int \frac {\sin (a)}{x} \, dx=\log \left (x\right ) \sin \left (a\right ) \]

[In]

integrate(sin(a)/x,x, algorithm="fricas")

[Out]

log(x)*sin(a)

Sympy [A] (verification not implemented)

Time = 0.02 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.00 \[ \int \frac {\sin (a)}{x} \, dx=\log {\left (x \right )} \sin {\left (a \right )} \]

[In]

integrate(sin(a)/x,x)

[Out]

log(x)*sin(a)

Maxima [A] (verification not implemented)

none

Time = 0.19 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.00 \[ \int \frac {\sin (a)}{x} \, dx=\log \left (x\right ) \sin \left (a\right ) \]

[In]

integrate(sin(a)/x,x, algorithm="maxima")

[Out]

log(x)*sin(a)

Giac [A] (verification not implemented)

none

Time = 0.28 (sec) , antiderivative size = 6, normalized size of antiderivative = 1.20 \[ \int \frac {\sin (a)}{x} \, dx=\log \left ({\left | x \right |}\right ) \sin \left (a\right ) \]

[In]

integrate(sin(a)/x,x, algorithm="giac")

[Out]

log(abs(x))*sin(a)

Mupad [B] (verification not implemented)

Time = 26.23 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.00 \[ \int \frac {\sin (a)}{x} \, dx=\sin \left (a\right )\,\ln \left (x\right ) \]

[In]

int(sin(a)/x,x)

[Out]

sin(a)*log(x)